from django.urls import path
from rest_framework import routers

from datasource.views.minio_operation import bucketinfo, deletebucketall, getmore
from datasource.views.minio_operation import getone
from datasource.views.minio_operation import getbucketall
from datasource.views.op_list import OpViewSet
from datasource.views.optype_list import OpTypeViewSet
from datasource.views.screenshot_list import ScreenshotsViewSet
from datasource.views.container import op_container, getChatGptResponse, stop
from datasource.views.container import savescreenshots
from datasource.views.container import savepicture
from datasource.views.camera_list import CameraViewSet
from datasource.views.camerascreentype_list import CameraScreenTypeViewSet
from datasource.views.bucket_list import BucketViewSet
from datasource.views.picture_list import PictureViewSet
from datasource.views.picture_type_list import PictureTypeViewSet
from datasource.views.container import video



datasource_url = routers.SimpleRouter()
datasource_url.register(r'op', OpViewSet)
datasource_url.register(r'optype', OpTypeViewSet)
datasource_url.register(r'screenshots', ScreenshotsViewSet)
datasource_url.register(r'camera', CameraViewSet)
datasource_url.register(r'camerascreen', CameraScreenTypeViewSet)
datasource_url.register(r'bucket', BucketViewSet)
datasource_url.register(r'picture', PictureViewSet)
datasource_url.register(r'picturetype', PictureTypeViewSet)

urlpatterns = [
    path('execop/', op_container),
    path('bucketinfo/', bucketinfo),
    path('getone/', getone),
    path('getmore/', getmore),
    path('getbucketall/', getbucketall),
    path('deletebucketall/', deletebucketall),
    path('savescreenshots/', savescreenshots),
    path('savepicture/', savepicture),
    path('video/', video),
    path('getgptresponse/',getChatGptResponse),
    path('stop/', stop)
]
urlpatterns += datasource_url.urls
